package first.chapter2.el;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

/**
 * @Description: 类作用描述
 * @Author: ChenZhiXiang
 * @CreateDate: 2019/5/8 0008 16:18
 * @Version: 1.0
 */
@Component
@PropertySource(value = "classpath:app.properties")
public class ResourcesConfig2 {

    @Autowired
    private Environment environment;

    public void d(){
        System.out.println(environment.getProperty("czx.wt"));
    }

}
